package cn.jiyun.feign;

import cn.jiyun.dto.TrainDTO;
import cn.jiyun.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 季乾帅
 * @create 2023/9/5 15:38
 */
@FeignClient(name = "Train")
public interface TrainFeign {

    @PostMapping("/train/findMyTrain")
    public Result findMyTrain(@RequestParam(value = "userId") String userId, @RequestBody TrainDTO dto);

}
